import Taro, { Component } from '@tarojs/taro'
import { View, Text, Image, Picker, Swiper, SwiperItem } from '@tarojs/components'
import {AtTextarea,AtButton,AtModal,AtModalHeader,AtModalContent,AtGrid,AtModalAction} from 'taro-ui'
import './qunfazhuangtai.scss'
import app from '../../../../main.js'
// import reactMixin from 'react-mixin';
// import myJs from '../../pages/qunfazhuangtai/qunfazhuangtaijs.js'

export default class Qunfazhuangtai extends Component {
    config = {
        navigationBarTitleText: '群发状态'
    }
    // constructor () { 
    //     super(...arguments); 
    //     this.state = this.getData(); 
    // }
    componentWillMount () {}
    componentDidMount () {}
    componentWillUnmount () {}
    componentDidShow () {}
    componentDidHide () {}
    backHomePage=()=>{
        app.redirectTo('../suifangHuanzheLieBiao/suifangHuanzheLieBiao');
    }

    render () {
        return (
            <View className='qunfazhuangtai'>
                <View className=' class_0'>
                    <View className=' class_1'>
                        <Text>您将发送消息给2位患者</Text>
                    </View>
                    <View className=' class_2'>
                        <Text>小米，小明</Text>
                    </View>
                </View>
                <AtTextarea placeholder='请输入发送内容' className=' class_3'></AtTextarea>
                <View className='blank-box'></View>
                <AtButton type='primary' className='send' full>发送</AtButton>
                <AtModal isOpened={true}>
                    <AtModalHeader>
                        <Text>发送结果</Text>
                    </AtModalHeader>
                    <AtModalContent>
                        <AtGrid columnNum='2' data={[{ image:app.imageUri+'img/icon-success.png',value:'成功：20'},{ image:app.imageUri+'img/icon-fail.png',value:'失败：0'}]}>
                        </AtGrid>
                    </AtModalContent>
                    <AtModalAction className=' class_4'>
                        <Text className=' class_5' onClick={this.backHomePage} >关闭</Text>
                    </AtModalAction>
                </AtModal>
            </View>
        );
    }
}
// reactMixin.onClass(Qunfazhuangtai,myJs);